<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"></c:set>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

	<form action="${ctx}/message?type=edit" method="post" onsubmit="return checkLogin();">
	    <div>
		    <input type="hidden" name="id" id="id" value="${message.id}">
		    <table>
		        <tr>
		            <td width="60px">标题：</td>
		            <td><input type="text" name="title" id="title" size="50" value="${message.title}"></td>
		        </tr>
		        <tr>
		            <td>内容：</td>
		            <td>
		            	<textarea rows="10" cols="100" name="content" id="content">${message.content}</textarea>
		            </td>
		        </tr>        
		        <tr>
		            <td colspan="2" align="center">
		            	<input type="submit" value="保存">
		            </td>            
		        </tr>
		    </table>
	    </div>
    </form>

</body>
</html>